#include <stdio.h>

extern float *search(float *score, int A, int B, int k); 

int main()
{
  // 三个学生, 每位学生4门课程
  float score[3][4]={{60,70,80,90},
         {56,89,67,88},{34,78,90,66}}; 
  float *p; int i,k;
  scanf("%d", &k);
  printf("The scores of No.%d are:\n",k);
  // 调用函数获取返回值
  p = search((float*)score, 3, 4, k);
  for(i = 0;i < 4; i++)
      printf("%5.2f\t",*(p + i));
  printf("\n");
  return 0;
}

float *search(float *score, int A, int B, int k)
{ 
  int offset = k * B;
   float *pt = score + offset;
   return pt;
}